package com.ruoyi.web.controller.open;

import com.eclink.asset.sys.service.SysRoleService;
import com.ruoyi.common.core.domain.entity.SysRole;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * 角色信息
 *
 * @author ruoyi
 */
@RestController
@RequestMapping("/open/role")
public class RoleController {

    @Resource
    private SysRoleService roleService;

    @GetMapping("/list")
    public List<SysRole> list(SysRole role)
    {
        List<SysRole> list = roleService.selectRoleList(role);
        return list;
    }

}
